package com.eshipenet.shipnet.equipmentextbuilder

sealed trait EquipmentExtAction {
  val id: String
}

case class EquipmentExtInsert(after: EquipmentExt) extends EquipmentExtAction {
  override val id: String = after.equipment.id
}
case class EquipmentExtUpdate(before: EquipmentExt, after: EquipmentExt) extends EquipmentExtAction {
  override val id: String = after.equipment.id
}
case class EquipmentExtDelete(before: EquipmentExt) extends EquipmentExtAction {
  override val id: String = before.equipment.id
}
